#pragma once

#ifndef _BIDCONTROL_
#include "LinkedList.h"
#else
#include "..\\..\\BidServer\\LinkedList.h"
#endif

class CProcessList : public CLinkedList
{
public:
	CProcessList();
	~CProcessList() override;
	void Start();
	void Stop();
	bool IsRunning();
	void ProcessThread();
	bool AddFirstNode(CLinkedNode *pAdd);
	bool AddNode(CLinkedNode *pAdd);

	bool m_ProcThreadRunning;
protected:
	virtual void ProcessNode(CLinkedNode *&pNode) = 0;

	bool m_ProcStopThread;
	HANDLE m_hProcThread;
	HANDLE m_hProcEvent;
};
